﻿using System;

namespace diantou.web.enterprise
{
    /// <summary>
    /// 我的私信
    /// </summary>
    [fastCSharp.code.cSharp.webView(IsPage = false, IsPool = true)]
    partial class messageList : examPermissionView<messageList>
    {
        /// <summary>
        /// 
        /// </summary>
        [fastCSharp.emit.webView.clearMember]
        private diantou.dataAccess.message[] messages;
        /// <summary>
        /// 用户
        /// </summary>
        [fastCSharp.emit.webView.clearMember]
        private diantou.dataAccess.user user;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        private bool loadView(int userId)
        {
            if (userId != 0) user = diantou.dataAccess.clientCache.User[userId];
            if (user != null) messages = diantou.dataAccess.tcpCall.message.get(currentUser.Id, userId);
            return true;
        }
    }
}
